const mongoose = require('mongoose')
const schema = new mongoose.Schema({
  title: {
    type: String
  },
  name: {
    type: String
  },
  dataStart: {
    type: String
  },
  dataEnd: {
    type: String
  },
  duration: {
    type: String
  },
  instructions: {
    type: String
  },
  pic: {
    type: String
  }, 
  icon: {
    type: String
  },
  username: {
    type: String
  },
  categories: [{
    type: mongoose.SchemaTypes.ObjectId , ref: "Category"
  }],
},{
  timestamps: true
})
module.exports = mongoose.model('Mytest', schema)